package com.java.demo.controller;

import org.springframework.stereotype.Controller;

@Controller // 将当前类存储到 Spring 中，实现了 Bean 的存储
public class StudentController {
    public void sayHi() {
        System.out.println("do StudentController sayHi()");
    }
}
